A Kernighan-Lin Local Improvement Heuristic That Solves Some Hard Problems in Genetic Algorithms

نویسنده

  • William A. Greene
چکیده

We present a Kernighan-Lin style local improvement heuristic for genetic algorithms. We analyze the run-time cost of the heuristic. We demonstrate through experiments that the heuristic provides very quick solutions to several problems which have been touted in the literature as especially hard ones for genetic algorithms, such as hierarchical deceptive problems. We suggest why the heuristic works well. In this research, population members (chromosomes) are bit strings, all of the same length, which we denote by N. We will refer to population members as individuals. A local improvement heuristic is a procedure which is applied to an individual, with the intention of modifying it into an related individual of higher fitness. Typically it is applied to a child chromosome, after its manufacture by some crossover operator but before the child is entered into the population. One form of local improvement heuristic is hill-climbing. One step of hill-climbing consists of flipping that bit in the individual which results in a maximal increase in fitness. To improve an individual, we might perform one step of hill-climbing, or several, or until the morphed individual has reached a local optimum and no further bit flip will increase fitness. At a far extreme, we might argue that we do not need either a population or genetic forces at all. Any single individual differs from an optimal individual by having the wrong bit values on some subset of its bits. If we loop through all subsets of bits, each time flipping those bits in the individual, ultimately we will identify an optimal individual. But of course this approach has exponential cost, which is intolerable. Our Kernighan-Lin local improvement heuristic falls in between hill-climbing and the extreme just described. It is inspired by the graph bisection work of Kernighan and Lin [1]. Let an individual be given. We build a tower S1, S2, ..., SMAX of subsets of its bits. Set Sk+1 is built from Sk by including one more bit. The extra bit is that one which is optimal with respect to change of fitness when flipped, but we allow the change to be a negative change (one no worse than the change from any other bit). We allow negative changes (hill descent), in the hope that perhaps later bit flips, in concert with previous flips, will result in yet more improvement to fitness. At most how many bits will we try flipping? Half of them (MAX = N/2) is a reasonable first guess. Then our heuristic actually flips those bits of whichever subset S1, S2, ..., SMAX produces the highest fitness. A complexity analysis of our local improvement heuristic shows it to have cost Q(Ng(N)), where function g is the cost to recalculate an individual’s fitness after flipping one of its bits. Function g may or may not be cheaper than the cost F(N) to fully calculate the fitness of an individual that is N bits wide. For our experiments we use a genetic algorithm that holds few surprises. It is generational, meaning that the population P(t+1) at time t+1 is produced by creating enough A Kernighan-Lin Local Improvement Heuristic That Solves Some Hard Problems 1583 children from the population P(t) at time t, through crossover. It uses elitism: the best two individuals of P(t) always survive into P(t+1). The crossover operator is 2-point crossover. The only surprise is that fairly heavy mutation is practiced, and it is graduated, in that less fit individuals undergo more mutation. It is also stochastic, in that we make mutation attempts, but each actually results in a bit flip with only 50% chance. We apply our local improvement heuristic first to a child after it has been created by crossover. Then we apply the heuristic again after the child has undergone mutation. Then the child is entered into the next generation P(t+1). The heuristic is also applied once to the members of the initial population P(0), which began as random strings. We tried our heuristic on four problems from the literature, which have been touted as especially hard problems for genetic algorithms. The problems are: one-dimensional Ising [2], k-fold, 3-deceptive [3], hierarchical if-and-only-if (HIFF) [4], and hierarchical trap [5]. In all cases, we used a population of 40 individuals (which is smaller than in the referenced researches), and conducted 20 trials, each of which was allowed if need be to run to 500 generations. In all cases we used individuals of N bits where N was at least as wide as in the referenced researches. We experimented with various choices for MAX, the maximum number of bits which could be flipped on a local improvement step, starting at N/2 and decreasing. For these four problems, our approach was consistently able to find optimal individuals, in a small number of generations. Moreover, the time cost was just several seconds (using a1.7 GHz Pentium processor), when we used optimized versions of the function g. Space allows us only to report on one problem here. It will be the first hierarchical trap function of reference [5]. As in [5], individuals are 243 bits wide. In [5], costs are given in terms of fitness calculations (225,000 on average); we show our costs in terms of clocked runtimes.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A Kernighan-Lin Local Improvement Heuristic that Softens Several Hard Problems in Genetic Algorithms

We present a local improvement heuristic for genetic algorithms, and term it a Kernighan-Lin style heuristic. We analyze the runtime cost of the heuristic, and show that it can be affordable. We then demonstrate through experiments that the heuristic provides very quick solutions to several problems which have been touted in the literature as especially hard ones for genetic algorithms. We sugg...

متن کامل

Solving the Multiple Traveling Salesman Problem by a Novel Meta-heuristic Algorithm

The multiple traveling salesman problem (MTSP) is a generalization of the famous traveling salesman problem (TSP), where more than one salesman is used in the solution. Although the MTSP is a typical kind of computationally complex combinatorial optimization problem, it can be extended to a wide variety of routing problems. This paper presents an efficient and evolutionary optimization algorith...

متن کامل

MIC 2003 : The Fifth Metaheuristics International Conference 90 - 1 Backbone Guided Local Search for the Traveling Salesman ∗

The Traveling Salesman Problem (TSP) is a well-known optimization problem with many real-world applications [4]. In this problem, one tries to find a minimal-cost tour visiting each of the given cities exactly once. Since the TSP is NP-hard, much research has concentrated on finding good approximate solutions. One class of heuristic algorithms is local search, which has been routinely applied t...

متن کامل

An Improved Adaptive Multi-Start Approach to Finding Near-Optimal Solutions to the Euclidean TSP

We present an “adaptive multi-start” genetic algorithm for the Euclidean traveling salesman problem that uses a population of tours locally optimized by the Lin-Kernighan algorithm. An all-parent cross-breeding technique, chosen to exploit the structure of the search space, generates better locally optimized tours. Our work generalizes and improves upon the approach of Boese et al. [2]. Experim...

متن کامل

Lin-Kernighan Heuristic Adaptation for the Generalized Traveling Salesman Problem

The Lin-Kernighan heuristic is known to be one of the most successful heuristics for the Traveling Salesman Problem (TSP). It has also proven its efficiency in application to some other problems. In this paper we discuss possible adaptations of TSP heuristics for the Generalized Traveling Salesman Problem (GTSP) and focus on the case of the Lin-Kernighan algorithm. At first, we provide an easy-...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2002